window.onload = function() {

	oMore = document.getElementsByTagName('a')[0];
	oMenu = document.getElementsByClassName('menu')[0];

	oMore.onclick = showMenu;

	document.onclick = hideMenu;

};

var oMore = null;
var oMenu = null;

function showMenu(ev) {
	ev = ev || event;
	ev.cancelBubble = true;
	oMenu.style.display = 'block';
}

function hideMenu() {
	oMenu.style.display = 'none';
}
